package day04;

public class Test1Inner {
    public static void main(String[] args) {
        // outer.Inner s = new outer().new Inner();
        // s.show();
        outer s = new outer();
        s.method();
        // outer.Inner1 s1=new outer.Inner1();
        //s1.show1();
        outer.Inner1.show1();
        Inter i =  s.getInner();
        i.show();


    }
}

interface Inter {
    public void show();
}

class outer {
    private int a = 10;

    private class Inner implements Inter {
        public void show() {
            System.out.println("我是内部类");
            System.out.println(a);
        }
    }

    public void method() {
        Inner i = new Inner();
        i.show();
    }

    static class Inner1 {
        public static void show1() {
            System.out.println("我是静态类");
        }
    }
    public Inter getInner() {
        return new Inner();
    }
}